<?php
class Web_View_Helper_OrderBy
	extends Zend_View_Helper_FormSelect 
{
	private $_options = array(
		'status'	=> 'status',
		'ranking'	=> 'rankingAsc',
		'date'	    => 'mostNew',
		'nameAsc'	=> 'nameAsc',
		'nameDesc'	=> 'nameDesc'
	);
	
	public function orderBy( $current ) 
	{
		foreach ($this->_options as $key => $option){
		
			$options[$key] = $this->view->translate( $option );
			
		}
		return $this->formSelect('orderBy', $current, array('class'=>'paginatorOrder'), $options);		
	}
	
}